<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%-- <base href="<%=basePath%>"> --%>

<title>employee</title>

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<script type="text/javascript" src="<%=basePath%>js/employee.js"></script>

</head>

<body>
	<!-- Alternative Content Box Start -->
	<div class="contentcontainer">
		<div class="headings altheading">
			<h2>生产记录</h2>
		</div>
		<div class="contentbox">
			<table width="100%">
				<thead>
					<tr>
						<th>员工编号</th>
						<th>员工姓名</th>
						<th>产品编号</th>
						<th>产品名称</th>
						<th>工价</th>
						<th>数量</th>
						<th>总额</th>
						<th>日期</th>
						<th>操作</th>
						<th><input name="" type="checkbox" value="" id="checkboxall" />
						</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${empProductList}" var="l" varStatus="i">
						<c:choose>
							<c:when test="${(i.count) % 2 == 0}">
								<c:set var="rowclass" value="" />
							</c:when>
							<c:otherwise>
								<c:set var="rowclass" value="alt" />
							</c:otherwise>
						</c:choose>
						<tr class="${rowclass}">
							<td>${l.userid}</td>
							<!-- 员工编号 -->
							<td>${l.username}</td>
							<!-- 员工姓名 -->
							<td>${l.productCode}</td>
							<!-- 零件编号 -->
							<td>${l.productname}</td>
							<!-- 零件名称 -->
							<td>${l.pieceRate}</td>
							<!-- 工价 -->
							<td>${l.num}</td>
							<!-- 数量 -->
							<td>${l.earning}</td>
							<!-- 总额 -->

							<td><fmt:formatDate value="${l.createDate}"
									pattern="yyyy-MM-dd" />
							</td>
							<!-- 日期 -->

							<td><a href="javascript:void(0)" title=""><img
									src="img/icons/icon_edit.png" alt="Edit" /> </a> <a
								href="javascript:void(0)" title=""><img
									src="img/icons/icon_unapprove.png" alt="delete" /> </a></td>
							
							<td><input type="checkbox" value="" name="checkall" />
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<jsp:include page="splitPage.jsp"></jsp:include>
		</div>
	</div>
	<!-- Alternative Content Box End -->

</body>
</html>
